<?php if(! defined('SYSPATH')) exit('No direct script access allowed');
/*
 +----------------------------------------------------------------------+
 | QuickPHP Framework Version 0.10                                      |
 +----------------------------------------------------------------------+
 | Copyright (c) 2010 QuickPHP.net All rights reserved.                 |
 +----------------------------------------------------------------------+
 | Licensed under the Apache License, Version 2.0 (the 'License');      |
 | you may not use this file except in compliance with the License.     |
 | You may obtain a copy of the License at                              |
 | http://www.apache.org/licenses/LICENSE-2.0                           |
 | Unless required by applicable law or agreed to in writing, software  |
 | distributed under the License is distributed on an 'AS IS' BASIS,    |
 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or      |
 | implied. See the License for the specific language governing         |
 | permissions and limitations under the License.                       |
 +----------------------------------------------------------------------+
 | Author: BoPo <ibopo@126.com>                                         |
 +----------------------------------------------------------------------+
*/
/**
 * 默认首页(home)
 * @category   Store
 * @package    Store_Home
 * @copyright  Copyright (c) 2010 http://quickphp.net All rights reserved.
 * @license    http://framework.quickphp.net/licenses/LICENSE-2.0
 * @version    $Id: home.php 7244 2011-01-22 14:35:53Z bopo $
 */
class Home_Controller extends Template_Controller
{
    /**
     * __call method
     */
    public function __call($method, $args)
    {
    }

    public function session()
    {
        $session = Session::instance();
//        ($session->set('a',$_ENV,100));
        var_dump($session->get('a'));
//        ($session->delete('a'));
//        var_dump($session->get('a'));
    }

    public function database()
    {
        $db = Database::instance();
        var_dump($db->list_tables());
        var_dump($db->list_columns('users'));
        $session = ORM::factory('session')->find();
        var_dump($session->as_array());
    }
}